package com.hwl.commonutils.utils;


import com.hwl.commonutils.exception.ParamsException;

/**
 * 自定义参数异常抛出
 * @author long
 * @since  2021-09-22
 */
public class AssertUtil {
    public static void isTrue(Boolean flag, String msg) {
        if (flag) {
            throw new ParamsException(msg);
        }
    }
}
